"""
Created on 2018/3/28 11:41 星期三
@author: Matt  zhuhan1401@126.com
Description: 核函数 & SVM入门
"""

import random
import numpy

def loadDataSet(fileName):
    dataMat=[];labelMat=[]
    fr=open(fileName)
    for line in fr.readlines():
        lineArr=line.strip().split('\t')
        dataMat.append([float(lineArr[0]),float(lineArr[1])])
        labelMat.append(float(lineArr[2]))
    return dataMat,labelMat

def selectJrand(i,m):
    j=i
    while(j==i):
        j=int(random.uniform(0,m))
    return j

def clipAlpha(aj,H,L):
    if aj>H:
        aj=H
    if aj<L:
        aj=L
    return aj

# Test One
print("Test One")
# dataMat,labelMat=loadDataSet('testSet.txt')



